package com.carbon.assets.service.impl;


import com.carbon.assets.mapper.DictMapper;
import com.carbon.assets.service.DictService;
import com.carbon.assets.vo.DictVo;
import com.carbon.common.service.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public  class DictServiceImpl extends BaseServiceImpl<DictMapper, DictVo> implements DictService {
    @Resource DictMapper dictMapper;

    @Override
    public String getDictCh(String code) {
        return(dictMapper.getDictCh(code));
    }

    @Override
    public List<DictVo> getMethodCode(String dictCode11) {
        return dictMapper.getMethodCode(dictCode11);
    }

    @Override
    public String getDictCode(String dictCh) {
        return dictMapper.getDictCode(dictCh);
    }
}
